package com.atguigu.lease.web.app.service;

import com.atguigu.lease.web.app.vo.user.LoginVo;
import com.atguigu.lease.web.app.vo.user.UserInfoVo;

public interface LoginService {

    /**
     * 获取短信验证码
     * @param phone
     * @throws Exception
     */
    void getCode(String phone) throws Exception;

    /**
     * 根据手机号和验证码登录,生成token并返回
     * @param loginVo
     * @return
     */
    String login(LoginVo loginVo);

}
